/** 
 * @file NetCtrl.h
 * @Synopsis  
 * @author JzeTech 
 * @version 0.1 beta
 * @date 2009-08-19
 */

#ifndef _NETSTORAGE_H_
#define _NETSTORAGE_H_
#include "Ipc.h"
#include "netCommon.h"
#include "netVideoPara.h"
#include "netStorage.h"
#include "netVoiceCall.h"
#include "netVideoRecord.h"
#include "Thread.h"

int IsTicketLegal(mxml_node_t *xmlnode);
void GetRecordDateTime(mxml_node_t *xmlnode, char *btm, char *etm); 
void ReplyRecordRequestMsg(int code, int sockfd, RecorDirList *rdlist);
void HandleVideoRecordRequest(int fd, char *buff, int bufLen, int code);
void DownloadVideoRecord(int fd, char *buff, int bufLen, int code);
void GetTime(RecordStorage *record, char *startm, char *endtm);
void GetRdDirListData(FILE *fp, RecorDirList *recordirList);
void ReplyDownloadMsg(int sockfd, int code, int count, RecorDirList *recordirList);
int SendRecordData(int fd, int code, int *filesize,
                   int flags, FILE *fp);
 #endif
